<?php
/**
 * 
 */
namespace app\home\controller\bonus;

use app\home\controller\Base;

class Handle extends Base
{

	// private $params;

	// public function __construct(){
	// 	parent::__construct();
	// 	// token验证
	// 	if(false == Base::checkToken()){
	// 		$this->error('token error!');
	// 	}
	// 	// 参数去token
	// 	//$params = $this->request->post();
	// 	$params = input('post.');
	// 	unset($params['token']);
	// 	$this->params = $params;
	// }

	/**
	 * 领取奖金
	 * @return [type] [description]
	 */
	public function receive_bonus(){
		if(false===$model->receiveMemberBonus(UID)){
			$this->error($model->getError());
		}else{
			$this->success('领取完成');
		}
	}


}